﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BusinessObjects.BO_GetObjects;

public partial class Controls_ucSlider : System.Web.UI.UserControl
{
    private string module_id;

    public string Module_id
    {
        get { return module_id; }
        set { module_id = value; }
    }
    private string page_size;

    public string Page_size
    {
        get { return page_size; }
        set { page_size = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadContent();
        }
    }

    protected void LoadContent()
    {
        DataTable objDT = BO_Articles.SelectByModule(Convert.ToInt32(module_id), 1, 5);
        if (objDT.Rows.Count > 0)
        {
            rptThumb.DataSource = objDT;
            rptThumb.DataBind();
            rptLargeThumb.DataSource = objDT;
            rptLargeThumb.DataBind();
        }
    }
}